import request from '@/utils/request'

export function memberList(data) {
  return request({
    url: '/member/list',
    method: 'get',
    params: data
  })
}

export function addMember(data) {
  return request({
    url: '/member/add',
    method: 'post',
    data
  })
}

export function getMember(data) {
  const id = { id: data }
  return request({
    url: '/member/one',
    method: 'get',
    params: id
  })
}

export function updateMember(data) {
  return request({
    url: '/member/update',
    method: 'post',
    data
  })
}

export function deleteMember(data) {
  return request({
    url: '/member/delete',
    method: 'get',
    params: data
  })
}
